<html>
<head><meta charset="utf-8"><title>don&#x27;t tell anybody about this · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/don&#x27;t.20tell.20anybody.20about.20this.html">don&#x27;t tell anybody about this</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="223214120"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/don%27t%20tell%20anybody%20about%20this/near/223214120" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/don&#x27;t.20tell.20anybody.20about.20this.html#223214120">(Jan 19 2021 at 11:31)</a>:</h4>
<p>I've just realize that it is extremely easy to use goto definition to open a file in the <code>~/.cargo</code> directory and edit it. I've just use that to make one private field in the dependency public, and after <code>rm -rf ./target</code> it just worked!</p>



<a name="223214303"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/don%27t%20tell%20anybody%20about%20this/near/223214303" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Kirill Bulatov <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/don&#x27;t.20tell.20anybody.20about.20this.html#223214303">(Jan 19 2021 at 11:33)</a>:</h4>
<p>Doing that every time to <code>dbg!</code> things in the third-party libraries <span aria-label="smile" class="emoji emoji-1f642" role="img" title="smile">:smile:</span></p>



<a name="223214444"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/don%27t%20tell%20anybody%20about%20this/near/223214444" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/don&#x27;t.20tell.20anybody.20about.20this.html#223214444">(Jan 19 2021 at 11:34)</a>:</h4>
<p>It is easy to forget to revert it again.</p>



<a name="223214499"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/don%27t%20tell%20anybody%20about%20this/near/223214499" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/don&#x27;t.20tell.20anybody.20about.20this.html#223214499">(Jan 19 2021 at 11:34)</a>:</h4>
<p>I think cargo should just mark everything read-only.</p>



<a name="223214580"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/don%27t%20tell%20anybody%20about%20this/near/223214580" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/don&#x27;t.20tell.20anybody.20about.20this.html#223214580">(Jan 19 2021 at 11:35)</a>:</h4>
<p>but how would I expose a private field to circumvent a safety invariant?</p>



<a name="223214661"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/don%27t%20tell%20anybody%20about%20this/near/223214661" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/don&#x27;t.20tell.20anybody.20about.20this.html#223214661">(Jan 19 2021 at 11:36)</a>:</h4>
<p><span aria-label="explosion" class="emoji emoji-1f4a5" role="img" title="explosion">:explosion:</span></p>



<a name="223214776"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/don%27t%20tell%20anybody%20about%20this/near/223214776" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/don&#x27;t.20tell.20anybody.20about.20this.html#223214776">(Jan 19 2021 at 11:37)</a>:</h4>
<p>Beware <a href="https://github.com/rust-analyzer/rust-analyzer/issues/5198">https://github.com/rust-analyzer/rust-analyzer/issues/5198</a></p>



<a name="223216362"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/don%27t%20tell%20anybody%20about%20this/near/223216362" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Lukas Wirth <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/don&#x27;t.20tell.20anybody.20about.20this.html#223216362">(Jan 19 2021 at 11:57)</a>:</h4>
<p>also <a href="https://github.com/rust-analyzer/rust-analyzer/issues/5847">https://github.com/rust-analyzer/rust-analyzer/issues/5847</a></p>



<a name="223222069"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/don%27t%20tell%20anybody%20about%20this/near/223222069" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Daniel Silverstone <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/don&#x27;t.20tell.20anybody.20about.20this.html#223222069">(Jan 19 2021 at 12:59)</a>:</h4>
<p>I've got an open bug in rustup that this is possible in libstd, I can't imagine the cargo folk aren't also aware of needing to close this <span aria-label="confused" class="emoji emoji-1f615" role="img" title="confused">:confused:</span></p>



<a name="223239402"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/don%27t%20tell%20anybody%20about%20this/near/223239402" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jeremy Kolb <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/don&#x27;t.20tell.20anybody.20about.20this.html#223239402">(Jan 19 2021 at 15:06)</a>:</h4>
<p>Yeah this is a problem :( I filed this for LSP awhile ago <a href="https://github.com/microsoft/language-server-protocol/issues/1150">https://github.com/microsoft/language-server-protocol/issues/1150</a></p>



<a name="223244686"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/don%27t%20tell%20anybody%20about%20this/near/223244686" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/don&#x27;t.20tell.20anybody.20about.20this.html#223244686">(Jan 19 2021 at 15:41)</a>:</h4>
<p>On the r-a side, we could at least refuse to rename definitions inside library sources</p>



<a name="223401116"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/don%27t%20tell%20anybody%20about%20this/near/223401116" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jeremy Kolb <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/don&#x27;t.20tell.20anybody.20about.20this.html#223401116">(Jan 20 2021 at 16:52)</a>:</h4>
<p>I just ran into this and accidentally edited the cargo crate in my cache.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>